<?php
require_once 'ab.php';
class Loh extends Ab {
    function __construct($name) {
        parent::__construct($name);
        $this->unfriendly = false;
    }
    function sdatsya($pered_kem) {
        if (($pered_kem instanceof Ab) && ($pered_kem->unfriendly)) {
            echo '* '.strtolower(__CLASS__).' otdaet vse dengi '.$pered_kem->name." *\n";
        }
    }
}